package com.qf.service;

import com.qf.entity.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService {

    /**
     * 获取验证码
     * @param u_phone
     * @param request
     * @return
     */
    String getCode(String u_phone, HttpServletRequest request);

    /**
     * 注册
     * @param user
     * @return
     */
    int register(User user);

    /**
     * 登录
     * @param user
     * @return
     */
    User userLogin(User user);

}
